FROM phusion/baseimage
RUN sed -i 's/archive/cn.archive/g' /etc/apt/sources.list

RUN apt-get update && apt-get install -y python2.7 python-webpy python-flup python-simplejson spawn-fcgi
RUN rm /usr/bin/python
RUN ln -s /usr/bin/python2.7 /usr/bin/python

RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/i*
